package com.dblog.server.servlets;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import java.util.Random;

public class Index extends Core {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2856430091878341059L;

	public Index(HttpServletRequest req, HttpServletResponse rsp) {
		super(req, rsp);
	}

	public void indexAction() throws IOException{
		Random generator = new Random();
		int r = generator.nextInt();
		Request.setAttribute("Gen", "My new blog. ID: "+r);
	}
	
	public void newAction(){
		if(Request.getMethod().contentEquals("POST")){
			
		}
	}
}
